# -*- coding: utf-8 -*-
# @Time    : 2021/1/2 下午4:36
# @Author  : tgy


def test01():
    ...
    complex = (1,)
    print(type(complex))
    cp = tuple([1, 2, 3])
    print(cp)
    cp[1] = 4


def test02():
    pass
    # 初始化
    dic = {'name': 'zhangsan'}
    dic1 = dict(name='lsi', age=21)
    print(dic1)
    dic2 = dict([('name', 'wangwu'), ('age', 21)])
    print(dic2)
    dict3 = {}.fromkeys({1, 2, 3})
    print(dict3)

    print(dict3.popitem())
    del dict3[2]
    print(dict3)
    dict3.update({4: '11', 1: '1'})
    print(dict3)
    dict3.setdefault(5, '2')
    print(dict3)

if __name__ == '__main__':
    ...
    test02()
